www.gusucode.com > 24Beta 虚拟主机版 1.0.0 Beta源码程序 > 24Beta 虚拟主机版 1.0.0 Beta源码程序/24Beta-1.0.0-vhost/library/framework/views/ro/log-firebug.php

    <script language="javascript" type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
	console.group("Application Log");
<?php
foreach($data as $index=>$log)
{
	$time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
	if($log[1]===CLogger::LEVEL_WARNING)
		$func='warn';
	else if($log[1]===CLogger::LEVEL_ERROR)
		$func='error';
	else
		$func='log';
	$content=CJavaScript::quote("[$time][$log[1]][$log[2]] $log[0]");
	echo "\tconsole.{$func}(\"{$content}\");\n";
}
?>
	console.groupEnd();
}
/*]]>*/
</script>